import request from '../../utils/request'

export function addExpense(expense) {
  return request({
    url: '/expense/add',
    method: 'post',
    data: expense
  })
}

export function initExpense(page) {
  return request({
    url: '/expense/get/'+page,
    method: 'get'
  })
}

export function delExpense(id) {
  return request({
    url: '/expense/del/'+id,
    method: 'delete'
  })
}
